package com.yuyou.train.service.api.user.service;

import java.util.List;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.yuyou.train.service.api.user.entity.UserLessonProgress;

@FeignClient(value = "train-user-service")
@RequestMapping(value = "/userLessonProgressAPI")
public interface UserLessonProgressAPI {

	@RequestMapping(value = "/getUserCurrLesson")
	UserLessonProgress getUserCurrLesson(			
			@RequestParam(value="userId") String userId,
			@RequestParam(value="classId") String classId)throws Exception;

	@RequestMapping(value = "/findUserLessonProgress")
	List<UserLessonProgress> findUserLessonProgress(
			@RequestParam(value="lessonId")String lessonId,
			@RequestParam(value="status")String status);

	@RequestMapping(value = "/getUserNextLesson")
	public String getUserNextLesson(
			@RequestParam(value="userId") String userId,
			@RequestParam(value="classId") String classId)throws Exception;
	
}
